package com.gui.proxy.staticProxy;

public class StaticProxy implements StaticProxyService{

    private StaticProxyService staticProxyService;

    public StaticProxy(StaticProxyService staticProxyService) {
        this.staticProxyService = staticProxyService;
    }

    @Override
    public String foo(String text) {
        System.out.println("前置增强..." + text);
        String result = staticProxyService.foo(text);
        System.out.println("后置增强..." + result);
        return result;
    }
}
